# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=clutter-gst
pkgver=3.0.27
pkgrel=1
pkgdesc="Integration library for using GStreamer with Clutter"
url="https://gitlab.gnome.org/GNOME/clutter-gst"
arch="all"
license="LGPL-2.0-or-later"
makedepends="glib-dev gstreamer-dev clutter-dev cogl-dev gst-plugins-base-dev
	python3 libgudev-dev gobject-introspection-dev"
subpackages="$pkgname-dev $pkgname-doc"
source="https://download.gnome.org/sources/clutter-gst/${pkgver%.*}/clutter-gst-$pkgver.tar.xz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--enable-udev \
		--enable-introspection
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="27271d9b2241a35cf7f61c4e9e25126d578494843c947cbeac6b5ad1dc8726c7a2a056239617ec39b04a7671a45dcbe2a65c364b10ed470f7c857647f8c36cac  clutter-gst-3.0.27.tar.xz"
